System and method to secure a computer system by selective control of write access to a data storage medium

ABSTRACT

A system and method of securing a computer system by controlling write access to a storage medium by monitoring an application; detecting an attempt by the application to write data to said storage medium; interrogating a rules database in response to said detection; and permitting or denying write access to the storage medium by the application in dependence on said interrogation.

This application claims priority to U.S. application Ser. No. 11/292,910filed on Dec. 1, 2005, and U.S. Application 60/826,377 filed on Sep. 20,2006, which are both hereby incorporated by reference.

BACKGROUND AND SUMMARY OF THE INVENTION

The present invention relates to a method of controlling the writing ofdata to a storage medium such as a hard drive in a computer system by anapplication running in a memory of the computer system.

The use of computers for Internet and other communication purposes,particularly in relation to electronic mail and the downloading ofapplications over the Internet has led to the proliferation of so-calledcomputer viruses. Whilst anti-virus programs have been developed tocombat these, they can be relatively elaborate and expensive and usuallyoperate to deal with an offending virus only after the operating systemof the computer has been infected. There are so many variants of virusprograms being released that anti-virus programs cannot identify newviruses quickly enough.

The present invention seeks to provide an improved method of preventingthe infection of a computer by a virus program.

According to the present invention there is provided a method ofcontrolling write access to a storage medium by monitoring anapplication; detecting an attempt by the application to write data tosaid storage medium; interrogating a rules database in response to saiddetection; and controlling write access to the storage medium by theapplication in dependence on said interrogation.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1: is a process diagram showing the control of a write instructionof an application in accordance with a preferred method of the presentinvention;

FIG. 2: is a process diagram illustrating an action of the preferredmethod according to the present invention; and

FIG. 3: is a flow diagram of the preferred method.

FIG. 4: shows the user interface querying the user for a decisionregarding an application.

FIG. 5: shows the user interface indicating the collective response ofother users to the same application request and logical location tostore vault data.

FIG. 6: shows a close-up of the user interface indicating the collectiveresponse of other users to the same application request.

FIG. 7: depicts the connection between two computers and a centralserver and the distribution of permission values from one computer tothe other through the server.

FIG. 8: depicts an alternative control flow in accordance with theinvention.

FIG. 9: depicts the user interface showing the reason a particular userresponded to the query.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Preferably the interrogation comprises determining the write accessallowed for the application and controlling the write access independence thereon.

Preferably write access is controlled to one of a plurality of levels,the levels including a first level in which no write access is allowed,a second level in which full write access is allowed, and a third levelin which write access is only allowed for at least one specified fileextension. Preferably where write access is controlled to the firstlevel, the method further includes generating a prompt on a displayrequesting response from a user.

Preferably the user can respond to the prompt by choosing from a numberof possible responses, the possible responses including a first responsefor allowing write access, a second response for blocking write accessand a third response for allowing write access to a specific file typeonly.

Preferably the user can respond further by selecting from a plurality offurther actions, the further actions including, storing the chosenresponse in the rules database; and applying the chosen response onlyfor the current attempt by the application to write data to said storagemedium.

Referring firstly to FIG. 1, this shows an application 12 which isrunning in a memory 14 of a computer system. The computer system alsohas a storage medium 16 which here is in the form of a hard drive ordisc.

The typical computer is comprised of a central processing unit, a mainmemory, a mass storage device and input and output connections. Theinput and output include keyboards, monitors and network connections.The mass storage device can be a magnetic disk, optical disk or a largearray of semiconductor devices. The main memory is typically an array ofsemiconductor circuits. The central processing unit is operativelyconnected to these components so that it can both control theiractivities and move data among the components. The central processingunit can load data off of the mass storage device and write it into mainmemory. This data can either be treated as a program or as data to beprocessed. If a program, the central processing unit passes control tothe program data and executes the instructions encoded in the data.Program data can be an application servicing the user.

When the computer is first booted up it automatically loads anapplication 18 which is here termed as an “interceptor” program. Thisruns constantly in the background. As an alternative to being loaded onboot up of the computer, it can, of course, be run at the user's promptat any time whilst the computer is operating. In addition, theinterceptor program can run continuously in the background as a process,including as part of the computer operating system.

When the application 12 attempts to write data to the disc 16 theinterceptor program 18 detects this and interrogates a rules database 20to determine the authority of the application 12 to write to the harddrive 16. The database 20 is preferably encrypted and lists applicationsapproved by the user with their level of write access. The term data isused here in its general sense to include any form of data includingprograms. The preferred number of possible write access levels for anapplication is three, being as follows:—

Level 0—this means that no write access to the hard drive 16 is allowedfor the application 12. Level 1—this means that full write access isallowed.

Level 2—the application is allowed write access to the hard drive 16 forspecified file extensions only, (for example “.doc” file extensions fordocument files in Microsoft Office™) file extensions of data that can bewritten to the hard drive are also held in the database 20.Level 4—The application can be granted to have access to a specificdrive or directory. The database can contain corresponding referencesbetween applications and file types or file extensions that suchapplication may write.

There are a number of rules which can be applied to the database 20 andthese are controlled by a manager program 22 which can sit in the memory14 alongside the interceptor program 18 and can also be run on start upof the computer or at any preferred time during operation of theinterceptor program 18, running continuously in the background,including as part of the computer operating system.

FIG. 2 illustrates the interface of the manager program 22 with therules database 20 and the system user.

When the interceptor program 18 detects that the application 12 isattempting to write to the hard drive 16 it initiates the loading andexecution of the manager program 22. The latter interrogates the rulesdatabase 20 to determine the access level of the application 12 andcontrols the interceptor program 18 to allow or prevent the write actionin dependence on the relevant rule in the rules database 20. If theapplication 12 is not listed in the rules database 20 or the particularwrite instruction is not allowed, the manager program 22 can generate aprompt signal to be displayed on the computer screen, requiring the userto make a decision on whether or not to allow the write instruction.This prompt can have a number of responses for the user to choose, suchas “Allow write access”, “Block write access” and “Allow write access tothis file type only”. Having chosen the response the user can alsoselect one of a number of further actions as follows.

-   1 Store the response in the rules database—The response is stored in    the rules database as a further rule to be applied to that    application on all future write actions.-   2 Block once the write action—This prevents the requested write    action for this occasion only and further write attempts by the    application again result in a user prompt.-   3 Allow once the write action—This allows the requested write action    but any future write requests for the application again result in a    user prompt.

Thus, for example, if the application 12 is attempting to write a fileto the hard drive 16 with a particular file extension, the rulesdatabase 20 can be updated such that all future attempts by theapplication 12 to write files of that same extension to the hard drive16 would be automatically allowed or prevented or result in further userprompts.

Practitioners of ordinary skill will recognize that in some operatingsystems, including Windows™, file extensions can be arbitrarily appliedto a file while the file contents are in fact something else. Thiscommon trick is used by virus writers to distribute an executablepayload with an extension other then .exe (in the Windows case). Thus,users can be tricked into clicking on (in order to view) what appears tobe a non-executable (a .jpg extension for a JPEG image, for example),but the computer, recognizing that internally, the file is anexecutable, will pass control to the program and launch it—thuspropagating the virus. Therefore, where determining the “file extension”is referred to in this disclosure, it also includes detecting the actualtype of file by examination of its contents, especially in the casewhere internally such file is an executable. Windows XP in a Nutshell,Second Edition, ©2005, O'Reilly Media, U.S.A is hereby incorporated byreference. Microsoft Windows Internals, 4th Edition: Microsoft WindowsServer 2003, Windows XP, and Windows 2000, Mark E. Russinovich, David A.Solomon, Microsoft Press, Hardcover, 4th edition, Published December2004, 935 pages, ISBN 0735619174, is hereby incorporated by reference.

The manager program 22 can also be loaded and executed by the user atstart up of the computer or at any time in order to scan the hard drive16 for programs to build a full rules database 20. The manager program22 can also be prompted by the user to display a list of programs withinthe rules database 20 with the access level of each program, giving theuser the option to delete, add or modify each entry. In addition, arules database can be pre-created, or incrementally improved anddistributed to the computer electronically, either embodied on a disk orelectronically over a data network. Rules determined by users can alsobe uploaded to a central depository as well. Rule updates can bedownloaded into the computer. Rules can also be included withinstallation files for the particular application that the installationfile is creating. In this case, the installation process has to besufficiently certified that program installation does not corrupt thedatabase by incorporating bogus rules that service virus writers.Certification can include digital signing protocols between theinvention and the installing program and other modes of verifyingauthenticity, including remotely accessed keys or trusted third partiesaccessed over a network. Rules can also be derived by examiningoperating system data where such data presents correspondences betweeninstalled program applications and file types and extensions. In thiscase, other authentication may be necessary in order to avoid viruswriters from inserting bogus file type associations within the operatingsystem databases. Practitioners of ordinary skill will recognize thatauthentication can include cyclic redundancy checking (CRC) and othertypes of numerical algorithms that detect when tampering has occurred.

In FIG. 3 a flow diagram 30 is shown which illustrates the methodfollowed on initiation 32 of the interceptor program 18. In thepreferred embodiment, the interceptor module is a kernel mode driverwhich has a higher level of access to the Windows file system and systemresources. Once initiated the interceptor program 18 waits in amonitoring step 34 during which it monitors for any file write operationto the hard drive 16. In the absence of a file write operation, theinterceptor program 18 remains in the monitoring step 34 and continuesto check for a file write operation.

If a file write operation is detected then write is pended in a queueand the interceptor program 18 proceeds to complete a series of rulechecking steps 36 by calling a kernel mode rules checker. Initially therules checker checks if the application 12 making the write attempt islisted in the rules database 20. The rules database can be stored on thelocal personal computer, client computer or remote server. In thepreferred embodiment, a recent list of rules that have been interrogatedmay also be held in a cache in kernel memory cache which speeds upapplications that are frequently accessing the drive. If the application12 is not listed then the interceptor program 18 initiates the managerprogram 22 to allow the user to make a decision about the correct way inwhich to proceed. Otherwise, if the application 12 is listed then theinterceptor program 18 proceeds to the next rule checking step.

On finding the application 12 listed in the rules database 20, theinterceptor program 18 goes on to check if the write privileges of theapplication 12. Initially the hard drive write privilege of theapplication 12 is checked. If the application 12 does not have privilegeto write to the hard drive then write access is blocked. Otherwise, theinterceptor program 18 checks if the application 12 has write privilegefor the specific file type, directory or filename which the writeattempt has been made to. The manager program can, at this step, checkthe data to be written or the file to which such data is being appendedto determine if the contents of the file are the appropriate file type,that is, to avoid improper creation of portable executable (PE) or otherfiles whose contents are intended to be used as computer program code.PE files are files that are portable across all Microsoft 32-bitoperating systems. The same PE-format file can be executed on anyversion of Windows 95, 98, Me, NT, and 2000. This is supplemental tochecking the file extension in order to avoid the virus propagationtechnique described above. If the application 12 does have privilege towrite to the specific detected file type or file extension then thewrite operation is allowed. Otherwise write access is blocked. Asignature of the application, which is a number that is calculated todetermine whether a code block has been tampered with, is also stored inthe rules database. Practitioners of ordinary skill will recognize thatCRC, or cyclic redundancy checks or other types of signature checking,for example, MD5 may be used. “Applied Cryptography” by Bruce Schneier,John Wiley & Sons, 1996, ISBN 0-471-11709-9 is hereby incorporatedherein by reference for all that it teaches. Practitioners of ordinaryskill will recognize that these techniques can also be used toauthenticate the rule database that the manager program uses to verifythe permission of the application. This allows trusted programs to beallowed access to the drive if their signature/structure hasn't changed,that is, the program has determined that the there has not beentampering with the application. An example is that a trusted applicationcould be infected with a Trojan or virus and still have access to thedrive based on its earlier approval being registered in the database.The manager program can use a number of criteria for the drive access ofan application. The rules can be based on file name, directory name,file type, file extension, registry access and creation of specific filetypes. FIG. 7 shows a basic flow-chart that further explains the systemcontrol flow.

If no rules are found for an application then a prompt module can askthe user what access level or permission they wish to allow for theapplication. This can involve denying or blocking the application writefor that instant or for ever. The user can also get information fromother users responses to a specific application by data being downloadedfrom a central server over a data network, both a proprietary network aswell as the Internet.

The system also allows feedback on the users responses to write requeststo be uploaded and stored on a central server. This stores if the userallowed or denied the application write, or what level of permission wasapplied and if it was denied, the reason why. The reason the user deniedit can be a number of responses such as ‘virus’, ‘Trojan’ etc. Theapplications name and signature are stored with the reason.

An embodiment of the invention can enforce strict rules on applicationswriting to disk drives, memory devices, drivers, external devices orremovable media. The rules can be implemented when the application firstwrites to the drive or via a graphical user interface or applicationmain window. The interface permits the creation and management of a setof sophisticated rules that determine what files types, directory ordrive the application can or can't write.

As a result, the invention permits a user's computer to prevent writeaccess (in real-time) to disk or other memory by malicious programswriting to applications or destroying files. Viruses such as Nyxem canbe blocked in real-time when they attempt to write over popular filetypes such as documents and spreadsheets.

The invention can prevent disk drive space from being wasted by blockingapplications from saving downloaded media used for advertising. Typicalfiles can be HTML pages, Flash Movies and graphics files, which, by filetype, can be blocked from being saved by browser application likeFireFox or Internet Explorer. Small files containing indicia about auser's web usage history, also called cookies, can be block from beingwritten to the disk drive by blocking them being saved into a specificdirectory. Specific file attachments can be blocked in order to preventapplications like instant messaging tools or email clients such asscreen savers and other executables from being saved.

Watch File Access:

In another embodiment, the invention features a powerful file andregistry watch which overrides the default application rules by allowingthe user to monitor attempted changes of critical system files orregistry keys in real-time for any attempted writes. This preventsviruses and other malicious code overwriting or damaging valuable dataor modifying settings in the system registry. The user can separatelyspecify to automatically block, allow or prompt before each actionoccurs. In addition, the user can specify wildcards such as *.DOC toprompt when certain files types are about to be written to and thenallow the user to be prompted before the write occurs. Thisfunctionality prevents Viruses and Trojans from changing registrysettings to allow themselves to start-up automatically. It also preventsViruses and Trojans changing system files such as HOST settings. It alsoprotects files from Virus attacks by checking before documents,spreadsheets or other valuable data are modified.

The system can also protect an entire directory by watching files beingchanged. If write access is approved for a device or hard drive, certaindirectories or files can be specified that still require a manualpermission for that directory. This ensures that spurious writes to adirectory or dangerous behaviour of a virus are blocked before theirmost destructive act takes place.

Real-Time Logs and Charts:

In another embodiment of the invention, the software embodying theinvention allows the user to view a log of all applications writing outfiles and registry keys. This allows the user to check what is actuallybeing written by each application. The user can right click on anyfile(s) in the log list and then either open them for viewing or deletethem from the drive. The activity log can also display a real-time graphof statistics that show the file and registry writes and any rules thathave been modified.

In another embodiment of the invention, the system can provideadditional information about applications by connecting to a serviceembodied in the central database accessible by a communications network.The database is populated with descriptions and recommended actions forpopular applications and processes. Service also displays on the user'scomputer screen statistical information on what other system users haveallowed or denied writing to their computer.

1: DriveSentry detects an unknown program writing to a drive. A popwindow is displayed and the user has a choice to block or allow theprocess from writing. The user can also click an info button whichdisplays another screen.2: The user can click an info button which displays the DriveSentryadvisor window. A connection is made to our server and displaysstatistical information about the application. The dialog displays a barchart which shows a % of the number of people that have blocked orallowed the application in the past. Another chart breaks down thereason why people blocked the application.3: The user can then choose to block or allow the program. If the userclicks the block button then a smaller window is displayed which promptsfor a reason they blocked the program. If the user doesn't deselect the‘upload feedback’ button then the data on if they allowed or blocked it(inc reason) is uploaded to the central server and added to the databasefor statistical records on the application.

Caching:

In another embodiment of the invention, each write to disk requested bya process has to be checked by polling the system's database. That is,the identity of the process or its parent application has to be used toquery the database to find what access rules apply. If the database ofrules is entirely on the disk drive, this will slow down performance ofa computer because for every disk access, there is another disk accessrequired. In order to speed up this process, it is desirable to create acache of some of the rules in the computer's main memory so that thedatabase rules can be accessed more quickly. By way of example, thecache can be stored the name of the action (e.g. write), name of theapplication or process and the access writes, e.g. file type or filename or device type. The cache is typically populated by the mostrecently used rules. Practitioners of ordinary skill will recognize thatthere are many strategies for populating a cache in a computer memory.One way is to store in the cache the last distinct N database queryresults, where N is selected by the practicality of how large a cache inmain memory can be supported. Alternatively, the cache can be populatedwith those rules associated with any active application, and the sectionof the cache devoted to a terminated application being flushed. Thelocation of the cache is typically stored in a secure location on thecomputer. This typically is the kernel memory, where driver code isstored. The kernel memory is set up by the operating system to benon-writable by processes not associated with that section of kernel. Inthis case, the kernel memory devoted to this cache is associated onlywith the security system embodying the invention that is running as anapplication or process. Alternatively, the memory allocated to the cachecan be encrypted with a check key like a CRC or MD5 so that theapplication can verify that the rules recovered from the encrypted cachehave not been corrupted by some other application or process or virus.Any other method of securing the rule cache from tampering may be used.

Vault Data Storage

The Vault system allows applications and data to be recovered undercertain circumstances if they are destroyed by a virus or othermalicious code.

Referring to FIG. 4, an application (1) runs on the user's computer andits' signature (4) and access rules (3) are read via the security system(2) to check that it's not been modified and it has access to write tothe drive.

The user can select any file such as a document or spreadsheet to beencrypted and compressed in a secure location as they are processed inreal-time by the system. The user can at anytime access the ‘Vaulted’copy and restore the file. The system can also store specific loaderdata on an application that can be easily used to repair an applicationif it becomes infected by a virus or other malicious code.

In the vault application, the system can save part or all of anencrypted copy of an executable. This can include a CRC (cyclicredundancy check) or MD5 code or similar code that tests the integrityof the block of code. Upon launch of the original executable (that is,the first copy not the vault copy), the CRC or MD5 of the originalexecutable file is checked. If there is an error, then it means thefirst copy of the executable is corrupted. At that point, the vaultsystem can be called to decrypt its encrypted copy of the executable. Ifthe entire executable has been placed in the vault, then the entirefirst executable copy can be replaced. If only a portion of theexecutable has been placed in the vault, the system can do a byte forbyte comparison of that block between the decrypted vault copy and thecorrupted first copy. Where there are discrepancies, the portions of thefirst copy can be replaced. At that point, the same CRC or MD5 can bechecked to see if the portion of the executable in the vault has fullyrepaired the first copy of the executable. If so, then the executable islaunched. If not, then the process fails and the application is stopped.Practitioners of ordinary skill will recognize that the process asapplied to executables can also apply to data files, provided that ifthe data file is corrupted and cannot be repaired, then an error may bereturned to the application rather than stopping the application.

In one embodiment of the invention, some processes can be specified tohave full privilege. For example, some operating system processes mustbe given broad access without checking the database for permission. Forexample, in Windows, the security software can specify that certainWindows processes, that is, processes spawned by Windows for theoperating system itself, rather than for an application, are writing toimportant Windows files. This might occur when the Windows operatingsystem is updating its own code. In this case, the security system willpermit writes to the *.ini, *.sys and *.exe modules that comprise theWindows operating system.

In another embodiment of the invention, special attention is paid towardwrites to any of the data files that define the configuration of aspecific instance of the operating system itself. In one example, theWindows Registry is a database that stores configuration data about thecomputer it is running on. Practitioners of ordinary skill willrecognize that hidden processes can be launched by inserting commandsinto the Registry, including in entries such as “run once” or “run”.These entries cause processes to launch on boot-up without any userinteraction. The invention is arranged to check for writes to thesecritical operating system files and specific entries in the operatingsystem files. If a write is approved, the system will log the write:that is, it will store in a data file the specific data being writteninto the file and its destination in the file. In addition, the systemwill place in the log the value of the data in the file that wasoverwritten. In the event a user or the system discovers that theoperating system file has been corrupted, then the log file can be usedby the system to detect what corrupt data was written to the operatingsystem file. The log file can also be used to restore the affectedoperating system file.

In another embodiment of the invention, critical writes to devices anddrivers can be trapped by the system and similarly checked for theirintegrity or permission. This includes checking writes to any removabledevices that may be attached to the computer temporarily.

In another embodiment of the invention, the database that the systembuilds up that notes whether an application has permission to write orother levels of access to resources on the computer can be shared amongmultiple users. In this case, all or part of the database associatedwith the system, where permissions or denials are stored, can beuploaded to a central database by means of typical data communicationsnetworks, including the Internet. The database is stored on a memorydevice that is operably attached to a computer that is further operablyattached to the data network. In this embodiment of the invention, eachupdate to a user's database with regard to application permissions isuploaded to update the central database. Additional information may bestored in the central database, for example, the number of users who hasapproved and denied the applications' request for the compute resource.Further, when a user is confronted with an application access requestthat the user has not seen before and where no recommendation or actiondata (that is to accept or deny permission) is within the database, thesystem can query the central server for the data it has regarding thatapplication. This data can be transmitted to the user's computer and theinformation displayed, as shown on FIG. 5. The user can then decidewhich action to take, and such decision can then be inserted into thelocal database on the user's computer.

Referring to FIG. 7, there are two or more computers, (1) and (6), eachusing an instance of the invention, embodied as software running on thecomputers. In addition, there is a central server (8) housing a databaseon a disk drive. The second user's computer running an embodiment of theinvention (6) may encounter a file access request by an unknownapplication (5). As described herein, this will result in the userinterface popping up and requesting that the user respond as to whetherto allow or block the access and it can also ask the user the reason,for example, the user may know that the identified application is avirus, Trojan or some other type of program. This information is storedin the local computer's database as described herein. In addition, thisinformation can be transmitted from the second computer (6) to thecentral server (8) by the formation of a message data packet that iscomprised of the name of the application or the application's executablefilename, or process name, the file type accessed, and the user'sresponse, for example, allow or deny (7). The server (8), when itreceives such a packet will update its database as follows: The serverwill search its database for a record corresponding to that applicationor the application's executable filename. If no record is found a newrecord is created that includes the information provided by the seconduser, and that one allowance was permitted (or denial, as the case maybe). As additional users report on the same application or executablefile or process, their responses are combined with the data present inthat data record. As allowances are received, the number of allowancesare incremented. As denials are received, the number of denials areincremented. Over time, the central server (8) has combined theresponses of many users to the same application, process or executablerequest.

When the first user's computer encounters the same application orexecutable file or process name for the first time, the local embodimentof the invention initiates a local search for that application,executable or process name (2). If there is no local entry for thatapplication, executable or process (3), then the first computer makes arequest (4) to the central server (8) to see if the central server hasany information about that application, executable or process. Thecentral server searches its database, and finding the compiled datadescribed above, sends a message data packet (9) back to the firstcomputer. The first computer then presents this data to the first userby means of a typical computer interface, including a graphicalinterface as shown in FIG. 5. The user's selection of what to do is thenentered into the local computer's database.

Practitioners of ordinary skill will recognize that the local databaseof application names, executable names and process names and theircorresponding permissions and restrictions for certain file types anddirectory locations can be immediately populated upon installation ofthe software that embodies the invention. In addition, the database canbe updated automatically or upon a user request to the central server.In this case, the central server would hold a database containingauthorized or fully vetted applications, executables and processes thathave been checked by the software manufacturer or some trusted thirdparty. A manufacturer of an application can create a file listing allexecutables that comprise the manufacturer's application and the filetype or file name and directory where such executable is supposed toappropriately write data. This information can be incorporated into thecentral server's database. The manufacturer can transmit to the centralserver (8) a request to include certain information into the database.This data will be indicated as actions recommended by the manufacturerof that specific application. As a result, this data can be used toautomatically populate the local database residing on the computers, (1)and (6). In addition, when the first computer encounters a request froman application for the first time, the central server (8) can deliver aresponse (9) that indicates that the manufacturer of the software eitherrecommends an allowance, or that the manufacturer does not list theaction as required by an uncorrupted copy of their software.

In another embodiment, the system installed on a particular user'scomputer has a unique identifier, identifying that instance of theprogram. When the system sends update data to the central databaseserver, it also sends the indicia of identity. The central databaseserver will only upload permission data for a given application from aspecific indicia of identity once. By means of that mechanism, the onlyway an application can earn multiple approvals, on the order of hundredsor thousands, is if hundreds or thousands of distinct installations ofthe security system send the central database an approval for thatapplication. This mechanism prevents a hacker or other nefarious actorfrom sending multiple approvals in order to trick the system.

In another embodiment of the system, a software producer, that is, alegitimate software developer, may analyze the operation of one or moreof its application products to detect the resource accesses that wouldbe detected and checked by the security system. The software developercan then compile a data file where there are two associated entries: theresource being accessed and the application making the access request.Further information can be provided, for example, the identity of theprocess, the type of access and other typical information. This datafile can then be converted into permission data that can be stored inthe central database. The permission data can be downloaded to a user'scomputer upon installation of the specific software product. Associatedwith this process can be further security checks. For example, theinstalled software can send a security check number, like a CRC or MD5code to the central server. This can be checked for integrity before thepermission data is downloaded to the user's computer.

In another embodiment, users are able to rate other user's submissionsfor accuracy or report them to DriveSentry administrators formoderation. Administrators associated with the central server or aservice business relying on the central server, can maintain and addentries to the database. An incentive can be provided to users in orderthat they participate effectively, for example to provide the top 5submitters in a month to receive a cash prize.

Upon the user submitting a report, the system running on the user'scomputer would launch a interface window that would display notes thathave been uploaded by other users and service administrators. Each notecould be rated for accuracy by other users and notes would be ordered bytheir score with the highest being displayed first. A user would also beable to add, edit and delete their notes. If a note was deemedinaccurate, libellous or inflammatory then it would be able to bereported to service administrators. Reported notes would be revieweddaily and deleted. The user interface displays could appear as shown inFIG. 8.

The user that submitted the note followed by the number of rejectednotes they had and the total amount e.g. Safaj ( 0/50). An icon wouldrepresent that the user was an administrator and their location using aflag symbol. The note would be scrollable and contain the description ofthe application. Notes would be able to be written in multiple languagesand filtered upon. The bottom of the note would contain a row of iconsthat would indicate the average rating of the note. Other users couldclick on the rating bar and submit their score to the overall accuracyof the note. If the user was the author of the note then they could editand delete notes. The user could report other users notes to anadministrator by click on a button on the note.

Multiple notes would be displayed from different users and sorted bytheir rating from other users. The user would be able add new notes. Theuser could also filter on notes that they had posted.

Although the present invention has been described and illustrated indetail, it is to be clearly understood that the same is by way ofillustration and example only, and is not to be taken by way oflimitation. It is appreciated that various features of the inventionwhich are, for clarity, described in the context of separate embodimentsmay also be provided in combination in a single embodiment. Conversely,various features of the invention which are, for brevity, described inthe context of a single embodiment may also be provided separately or inany suitable combination. It is appreciated that the particularembodiment described in the Appendices is intended only to provide anextremely detailed disclosure of the present invention and is notintended to be limiting. It is appreciated that any of the softwarecomponents of the present invention may, if desired, be implemented inROM (read-only memory) form. The software components may, generally, beimplemented in hardware, if desired, using conventional techniques.

The spirit and scope of the present invention are to be limited only bythe terms of the appended claims.

1. In a computer operated by a user through a user interface, andcomprising a central processing unit operatively connected to a storagemedium and an application running on said computer, a method ofcontrolling write access to said storage medium by said applicationcomprising: detecting an attempt by the application to write data tosaid storage medium in the location of a pre-designated file; inresponse to said attempt, retrieving a permission value from a databasecomprised of data elements encoding at least one permission valueassociated with the application and the designated file; and controllingwrite access to the storage medium by the application in dependence onsaid permission value.
 2. The method of claim 1 where the pre-designatedfile is an operating system file and the permission value encodes adenial of permission for the application to write to the pre-designatedfile.
 3. The method of claim 1 where the pre-designated file is a filedesignated by the computer user and the permission value encodes adenial of permission for the application to write to the pre-designatedfile.
 4. The method of claim 1 where the permission value encodes adenial of permission for the application to write to a directory thatincludes the designated file and the controlling write access stepblocks said write.
 5. The method of claim 1 further comprising receivingas input from the computer user interface of said computer, thedesignation of the pre-designated file.
 6. The method of claim 1 wherein the absence of a permission value associated with said applicationbeing present in the database, displaying on the user interface of saidcomputer a request to input a permission value.
 7. The method of claim 6further comprising storing in said database the permission value inputin response to said request.
 8. In a computer comprising a storagemedium and an application running on said computer, a method ofcontrolling write access to said storage medium by said applicationcomprising: detecting an attempt by the application to write data tosaid storage medium in the location of a destination file; in responseto said attempt, retrieving a permission value from a database comprisedof data elements encoding at least one permission value associated withthe application; permitting write access to the storage medium by theapplication in dependence on said permission value where the permissionvalue encodes permission for the application to write to the storagemedium; storing to a second file, reference data that indicates at leastthe identity of the application and the identity of the destinationfile.
 9. The method of claim 8 further comprising: storing in a secondfile the data in the destination file that is either overwritten orerased from the destination file by the application.
 10. The method ofclaim 9 further comprising: storing in the second file the referencedata that indicates correspondence between the stored overwritten orerased data and the application's write activity to the destinationfile.
 11. In a computer comprising a storage medium and an applicationrunning on said computer, a method of controlling write access to saidstorage medium by said application comprising: detecting an attempt bythe application to write data to said storage medium; in response tosaid write attempt, attempting to retrieve a permission value from adatabase comprised of data elements encoding at least one permissionvalue associated with one or more applications; in the case that nopermission value for the running application is found in the database,transmitting to a central server operatively connected to the computerand to at least one additional computer, a query comprised of an indiciaof identity associated with said running application; receiving fromsaid central server, data that represents the collective response of theuser of the at least one additional computer to requests by the sameapplication running on said at least one additional computer to accessthe storage medium that comprises said at least one additional computer.12. The method of claim 11 further comprising displaying on the userinterface of said computer graphical forms representative of saidcollective response data.
 13. The method of claim 11 where thecollective response data includes the percentage of other computer userswho have approved the application writing to the storage mediumassociated with their respective at least one additional computer. 14.The method of claim 11 where the collective response data includes thenumber of other users that have approved the application writing to thestorage medium associated their respective at least one additionalcomputer.
 15. The method of claim 11 where the collective response dataincludes at least one statement characterizing the reason that said atleast one additional computer user selected a particular permissionvalue.
 16. The method of claim 15 where the reason is a spyware.
 17. Themethod of claim 15 where the reason is a virus.
 18. The method of claim15 where the reason is a trojan.
 19. In a computer comprising a storagemedium and a running process on said computer, a method of controllingwrite access to said storage medium by said process comprising:detecting an attempt by the process to write data to said storagemedium; in response to said attempt, retrieving a permission value froma database comprised of data elements encoding at least one permissionvalue associated with the process and the designated file, said databasebeing at least partially stored in cache memory; and controlling writeaccess to the storage medium by the process in dependence on saidpermission value.
 20. The method of claim 19 further comprisingselecting data elements from the database for populating the cachememory by means of a most recently used criteria.
 21. The method ofclaim 19 further comprising selecting data elements from the databasefor populating the cache memory by means of a criteria where for someinteger N greater than zero, the last N data elements that have beenqueried.
 22. The method of claims 19, 20, or 21 further comprisingflushing the cache memory of data elements associated with a terminatedprocesses.
 23. The method of claims 19, 20, or 21 further comprising, inresponse to the initiation of a process, populating the cache memorywith all of the data elements in the database that are associated withthe initiated process.
 24. The method of claim 19-21 where the cachememory location resides in kernel memory.
 25. The method of claim 19-21where the data elements stored in the cache memory are encrypted. 26.The method of claims 19-21 where the cache memory resides in acontroller associated with the storage medium.
 27. In a computercomprising a storage medium and an application running on said computer,a method of controlling write access to said storage medium by saidapplication comprising: installing the application; adding to a databasecomprised of data elements encoding at least one permission valueassociated with an application and file identity, at least oneadditional data element associated with the installed application;running the application; detecting an attempt by the application towrite data to said storage medium; in response to said attempt,retrieving a permission value associated with the application from thedatabase; and controlling write access to the storage medium by theapplication in dependence on said permission value.
 28. The method ofclaim 27 further comprising: downloading into the computer from acentral server operatively connected to the computer the at least oneadditional data element.
 29. The method of claim 27 further comprisingverifying the authenticity of the at least one additional data element.30. The method of claim 29 where the verification step is comprised of:determining at least one digital signature associated with the at leastone additional data element; checking that the digital signature is thecorrect digital signature for the at least one additional data element.31. The method of claim 27 further comprising checking that theapplication has not been tampered with.
 32. The method of claim 31 wherethe checking step is comprised of calculating a signature for theapplication executable code image and transmitting the signature to acentral server.
 33. The method of claim 31 where the checking step isfurther comprised of using the signature calculated for the applicationto decrypt the data element.
 34. The method of claim 31 where thechecking step is comprised of receiving a digital signature from acentral location operatively connected to the computer and comparing thereceived digital signature with the determined digital signature.
 35. Ina computer comprising a storage medium and an application running onsaid computer, a method of controlling write access to said storagemedium by said application comprising: detecting an attempt by theapplication to write data to said storage medium; in response to saidwrite attempt, attempting to retrieve a permission value from a databasecomprised of data elements encoding at least one permission valueassociated with one or more applications; in the case that no permissionvalue for the running application is found, transmitting to a centralserver operatively connected to the computer a query comprised of anindicia of identity associated with said running application; receivingfrom said central server information collective response data of atleast one other computer user's to the request by the same applicationrunning on said other computer user's computers to access the storagemedium that comprises said at least one other computer user's computers;receiving from said central server information transmitted to saidcentral server, said information comprising other user's critique ofsaid at least one other computer user's response.
 38. A computer systemcomprising a storage medium, a central processing unit and a mainmemory, where said central processing unit executes any of the methodsof claims 1-37.
 39. A computer readable data storage medium containingdigital data that, when loaded into a computer and executed as aprogram, causes the computer to execute any of the methods of claims1-37.